import dayjs from 'dayjs'

export default function formatDate(date, split = "YYYY-MM-DD") {
    if (!date) {
        return ''
    } else {
        return dayjs(date).format(split);
    }
}